﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gmis.Web.Manage.Affairs
{
    public partial class LeaveWordReply : System.Web.UI.Page
    {
        public string Id = string.Empty;
        public Gmis.Model.LeaveWord model = new Model.LeaveWord();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }

        }
        private void InitData()
        {
            //throw new NotImplementedException();
            Id = Request.QueryString["Id"] == null ? "" : Request.QueryString["Id"].ToString();
            if (Id == "")
            {
                Response.Write("没有获取到栏目信息!");
                return;
            }
            Gmis.BLL.LeaveWord bll = new BLL.LeaveWord();
            model = bll.GetModel(Id);
            if (model == null)
            {
                return;
            }
            txtcontents.Value = model.contents;
            replyContents.Value = model.replyContents;
        }
    }
}